﻿@model Cipher.Web.Models.CipherModel

@{
    ViewBag.Title = "Create a Cipher";
    Layout = ViewBag.Layout;
}

@*@section TitlePanel{
<div id="title-panel">&raquo; Create a Cipher</div>
}*@

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <div class="editor-label">
        @Html.LabelFor(model => model.Name)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Name)
        @Html.ValidationMessageFor(model => model.Name)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.Description)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(model => model.Description, new { cols = "80", rows = "10" })
        @Html.ValidationMessageFor(model => model.Description)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.SourceId)
    </div>
    <div class="editor-field">
        @Html.DropDownListFor(model => model.SourceId, (IEnumerable<SelectListItem>)ViewBag.DataSources)
        <img src="@Url.Content("~/Content/images/addition.gif")" align="center" />
        @Html.ValidationMessageFor(model => model.SourceId)
    </div>

    <p>
        <input type="submit" value="Next Step" />
    </p>
}